package com.ruoyi.biz.index.controller;

import com.ruoyi.biz.index.pojo.ShortcutReq;
import com.ruoyi.biz.index.service.HomeService;
import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RequiredArgsConstructor
@RestController
@RequestMapping("/api/v1/index")
public class HomeController extends BaseController {

    private final HomeService homeService;

    @GetMapping("/shortcuts")
    public AjaxResult getHomeShortcuts() {
        return success(homeService.getShortcuts(new ShortcutReq()));
    }
}
